package edu.unr.cater.npap.server.locator;

import com.google.web.bindery.requestfactory.shared.Locator;
import edu.unr.cater.npap.client.domain.TransportationAgency;
import org.springframework.roo.addon.gwt.RooGwtLocator;
import org.springframework.stereotype.Component;

@RooGwtLocator("edu.unr.cater.npap.client.domain.TransportationAgency")
@Component
public class TransportationAgencyLocator extends Locator<TransportationAgency, Integer> {

    public TransportationAgency create(Class<? extends edu.unr.cater.npap.client.domain.TransportationAgency> clazz) {
        return new TransportationAgency();
    }

    public TransportationAgency find(Class<? extends edu.unr.cater.npap.client.domain.TransportationAgency> clazz, Integer id) {
        return TransportationAgency.findTransportationAgency(id);
    }

    public Class<edu.unr.cater.npap.client.domain.TransportationAgency> getDomainType() {
        return TransportationAgency.class;
    }

    public Integer getId(TransportationAgency transportationAgency) {
        return transportationAgency.getAgencyId();
    }

    public Class<java.lang.Integer> getIdType() {
        return Integer.class;
    }

    public Object getVersion(TransportationAgency transportationAgency) {
        return transportationAgency.getVersion();
    }
}
